package com.fqh.controller;

import com.fqh.entity.Foodclass;
import com.fqh.entity.JsonResult;
import com.fqh.service.FoodClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Scope(value = "prototype")
@RestController
public class FoodClassController {

    @Autowired
    private FoodClassService foodClassService;

    @RequestMapping("/findAllCaiType.do")
    public List findAllCaiType() {
        List<Foodclass> list = foodClassService.findAllCaiType();
        return list;
    }
}
